// 复选框
.weui_cells.weui_cells_checkbox.w_mt(ng-if='"checkbox" == "" + ctype')
  label.weui_cell.weui_check_label(for='{{cfieldname}}_{{citem.key}}', ng-repeat='citem in citems')
    .weui_cell_hd
      input.weui_check(type='checkbox', name='{{cfieldname}}', id='{{cfieldname}}_{{citem.key}}', ng-model='$parent.checkitems[$index].checked', ng-click='checkClick()')
      i.weui_icon_checked
    .weui_cell_bd.weui_cell_primary
      p {{citem.value}} {{checkitems[$index].checked}}

// 单选框
.weui_cells.weui_cells_radio.w_mt(ng-if='"radio" == "" + ctype')
  label.weui_cell.weui_check_label(for='{{cfieldname}}_{{citem.key}}', ng-repeat='citem in citems')
    .weui_cell_bd.weui_cell_primary
      p {{citem.value}}
    .weui_cell_ft
      input.weui_check(type='radio', name='{{cfieldname}}', id='{{cfieldname}}_{{citem.key}}', value='{{citem.key}}', ng-model='$parent.$parent.radioitems', ng-click='radioClick()')
      span.weui_icon_checked

// 下拉框
.weui_cells.w_mt(ng-if='"select" == "" + ctype')
  .weui_cell.weui_cell_select.weui_select_after
    .weui_cell_hd
      | {{clabel}}
    .weui_cell_bd.weui_cell_primary
      select.weui_select(id='{{cfieldname}}', ng-model='$parent.selectitems', ng-change='selectChange()', ng-options='citem.key as citem.value for citem in citems')
        option(value='') ---请选择---

// 开关
.weui_cells.w_mt(ng-if='"switch" == "" + ctype')
  .weui_cell.weui_cell_switch
    .weui_cell_hd.weui_cell_primary {{clabel}} {{$parent.switchitems}}
    .weui_cell_ft
      input.weui_switch(type='checkbox', name='{{cfieldname}}', id='{{cfieldname}}', ng-model='$parent.switchitems', checked='true', ng-click='switchClick()')

// 文本框
.w_mt(ng-if='"textbox" == "" + ctype')
  .weui_cell(ng-class='{w_c_bf:iscell}')
    .weui_cell_hd
      label.weui_label {{clabel}}
    .weui_cell_bd.weui_cell_primary
      input.weui_input(type='text', name='{{cfieldname}}', id='{{cfieldname}}', ng-model='$parent.textitems', placeholder='{{cplaceholder}}', ng-change='textChange()')

// 验证码
.w_mt(ng-if='"vcode" == "" + ctype')
  .weui_cell.weui_vcode(ng-class='{w_c_bf:iscell}')
    .weui_cell_hd
      label.weui_label {{clabel}}
    .weui_cell_bd.weui_cell_primary
      input.weui_input(type='text', name='{{cfieldname}}', id='{{cfieldname}}', ng-model='$parent.vcodeitems', placeholder='{{cplaceholder}}', ng-change='vcodeChange()')
    .weui_cell_ft
      img(ng-src='{{vimgurl}}')

// 多行文本框
.w_mt(ng-if='"textarea" == "" + ctype')
  .weui_cell(ng-class='{w_c_bf:iscell}')
    .weui_cell_hd
      label.weui_label {{clabel}}
    .weui_cell_bd.weui_cell_primary
      textarea.weui_textarea(name='{{cfieldname}}', id='{{cfieldname}}', ng-model='$parent.textareaitems', placeholder='{{cplaceholder}}', ng-change='textareaChange()')

// 日期控件
.w_mt(ng-if='"date" == "" + ctype')
  .weui_cell(ng-class='{w_c_bf:iscell}')
    .weui_cell_hd
      label.weui_label(for='') {{clabel}}
    .weui_cell_bd.weui_cell_primary
      input.weui_input(type='date', name='{{cfieldname}}', id='{{cfieldname}}', ng-model='$parent.dateitems', placeholder='{{cplaceholder}}', ng-change='dateChange()')
